package com.atguigu.gulimall.product.feign;

import com.atguigu.common.to_and_vo.es.SkuEsModel;
import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient("gulimall-search")
@Component
public interface SearchFeignService {

    @RequestMapping("/search/product")
    public R productStatusUp(@RequestBody List<SkuEsModel> upProducts);
}
